<!DOCTYPE html>
<html>
<head lang="zh-CN">
    <meta charset="UTF-8">
    <title>套壳接口文档</title>
    <script src="js/jquery-3.1.1.min.js"></script>
</head>
<body>
<div class="bdsharebuttonbox"><a href="#" class="bds_more" data-cmd="more"></a><a href="#" class="bds_qzone" data-cmd="qzone"></a><a href="#" class="bds_tsina" data-cmd="tsina"></a><a href="#" class="bds_tqq" data-cmd="tqq"></a><a href="#" class="bds_renren" data-cmd="renren"></a><a href="#" class="bds_weixin" data-cmd="weixin"></a></div>
<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdPic":"","bdStyle":"0","bdSize":"16"},"share":{},"image":{"viewList":["qzone","tsina","tqq","renren","weixin"],"viewText":"分享到：","viewSize":"16"},"selectShare":{"bdContainerClass":null,"bdSelectMiniList":["qzone","tsina","tqq","renren","weixin"]}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
<div>http://edu.yzztnet.com/public/api/index.php/jiajiao/interface/+接口名称</div>
<!--http://edu.yzztnet.com/public/api/index.php/jiajiao/interface/lunbo-->
<div class="title">接口文档</div>
  <div>
    code:1000表示查询有数据或则提交修改，删除成功，
    * 1001表示查询没有数据，提交失败，修改失败，
    * 1004表示参数不全，
    * 1002表示没有登录
    * 1003表示登录过期
    * 1005表示数据已经存在
    * 1006表示已经认证过
    * 1007表示已经登录
    *status:1表示调接口成功，0表示调用接口失败
</div>
<br/>
<table border="1px solid #ccc" style='border-collapse:collapse'>
    <tr >
        <td >接口名称</td><td >接口描述</td><td >接口参数</td><td >接口返回值</td>
    </tr>
    <tr>
        <td width="5%">checkloginis</td><td width="8%">检测用户是否登录</td><td width="10%">无</td><td width="40%">json格式，code,status,data｛如果登录过，将返回用户的信息 ：`id`, `username`, `password`, `headimage`, `address`, `hangdang`, `rongyu`, `zhengshu`, `xingming`, `nianling`, `xingbie`, `yuantuan`, `xueli`, `juzhong`, `danwei`, `leixing`, `jumu`, `yuanxiao`, `shicong`, `jianjie`, `weizhi`, `liupai`, `zhaopian`, `dianhua`, `logintime`, `deltime`, `isrenzheng`, `images`, `dottime`, `renzhengtime`, `price`；如果未登录会返回对应的提示信息｝</td>
    </tr>
    <tr>
        <td width="5%">lunbo</td><td width="8%">获取轮播图</td><td width="10%">无</td><td width="40%">json格式，code,status,data｛轮播图数组｝</td>
    </tr>
    <tr>
        <td width="5%">getCitys</td><td width="8%">获取城市</td><td width="10%">无</td><td width="40%">json格式，code,status,data｛"bj":"北京市","sh":"上海市","tj":"天津市","cq":"重庆市","nm":"内蒙古自治区","nx":"宁夏回族自治区","ww":"新疆维吾尔自治区","xz":"徐州","gx":"广西壮族自治区","xg":"香港特别行政区","am":"澳门特别行政区","nj":"南京","sz":"苏州","wx":"无锡","cz":"常州","zj":"镇江","yz":"扬州","tz":"台州","yc":"盐城","ha":"淮安","sq":"宿迁","lyg":"连云港",
        * "hz":"湖州市","nb":"宁波","wz":"温州","jx":"嘉兴市","sx":"绍兴市","jhs":"金华市","qz":"衢州市","zs":"舟山市","ls":"丽水市"｝</td>
    </tr>
    <tr>
        <td width="5%">getjuzhong</td><td width="8%">获取剧种</td><td width="10%">type:1表示加载首页的剧种，2表示注册使用的剧种</td><td width="40%">json格式，code,status,data｛{"name":"京剧","type":0},{"name":"评剧","type":1},{"name":"梆子","type":2},{"name":"豫剧","type":3},{"name":"越剧","type":6}｝</td>
    </tr>
    <tr>
        <td width="5%">gethangdang</td><td width="8%">获取行当</td><td width="10%">无</td><td width="40%">json格式，code,status,data｛{"type":"生行","value":["老生","小生","娃娃生","武生","坤生","红生"]},{"type":"旦行","value":["青衣","花旦","花衫","武旦","老旦","男旦"]},{"type":"净行","value":["正净","武净"]},{"type":"丑行","value":["文丑","武丑"]},{"type":"器乐","value":["京胡","月琴","弦子","单皮鼓","大锣","小锣"]}]｝</td>
    </tr>
   <tr>
        <td width="5%">getteachers</td><td width="8%">获取老师列表</td><td width="10%">page:第多少页</td><td width="40%">json格式，code,status,data｛{"xingming":"秦川","xingbie":"0"(0表示女，1表示男),"headimage":"","hangdang":"武生","price":0,"isrenzheng":1},{"xingming":"于魁智","xingbie":"0","headimage":"","hangdang":"老生","price":0,"isrenzheng":0},{"xingming":"李胜素","xingbie":"1","headimage":"","hangdang":"青衣、花衫","price":0,"isrenzheng":0},{"xingming":"董圆圆","xingbie":"1","headimage":"","hangdang":"","price":0,"isrenzheng":0},{"xingming":"江其虎","xingbie":"0","headimage":"","hangdang":"","price":0,"isrenzheng":0},{"xingming":"叶金援","xingbie":"0","headimage":"","hangdang":"","price":0,"isrenzheng":0},{"xingming":"林鹏","xingbie":"0","headimage":"","hangdang":"","price":0,"isrenzheng":0},{"xingming":"齐天一","xingbie":"1","headimage":"","hangdang":"","price":0,"isrenzheng":0},{"xingming":"刚毅","xingbie":"0","headimage":"","hangdang":"","price":0,"isrenzheng":0},{"xingming":"田冬青","xingbie":"0","headimage":"","hangdang":"老生","price":0,"isrenzheng":0｝</td>
    </tr>
    <tr>
        <td width="5%">searchteachers</td><td width="8%">筛选老师列表</td><td width="10%">page:第多少页，juzhong：剧种（值是剧种对应的id），hangdang:行当（值是行当对应的中文）如果剧种和行当只有一个话，另一个传空字符就行</td><td width="40%">json格式，code,status,data｛{"xingming":"秦川","xingbie":"0"(0表示女，1表示男),"headimage":"","hangdang":"武生","price":0,"isrenzheng":1},{"xingming":"于魁智","xingbie":"0","headimage":"","hangdang":"老生","price":0,"isrenzheng":0},{"xingming":"李胜素","xingbie":"1","headimage":"","hangdang":"青衣、花衫","price":0,"isrenzheng":0},{"xingming":"董圆圆","xingbie":"1","headimage":"","hangdang":"","price":0,"isrenzheng":0},{"xingming":"江其虎","xingbie":"0","headimage":"","hangdang":"","price":0,"isrenzheng":0},{"xingming":"叶金援","xingbie":"0","headimage":"","hangdang":"","price":0,"isrenzheng":0},{"xingming":"林鹏","xingbie":"0","headimage":"","hangdang":"","price":0,"isrenzheng":0},{"xingming":"齐天一","xingbie":"1","headimage":"","hangdang":"","price":0,"isrenzheng":0},{"xingming":"刚毅","xingbie":"0","headimage":"","hangdang":"","price":0,"isrenzheng":0},{"xingming":"田冬青","xingbie":"0","headimage":"","hangdang":"老生","price":0,"isrenzheng":0｝</td>
    </tr>
    <tr>
        <td width="5%">gettechdetails</td><td width="8%">获取老师详细列表包含了对老师评价内容</td><td width="10%">id:老师的列表的id</td><td width="40%">json格式，code,status,data｛"teachers":{"danwei":"","juzhong":"京剧","headimage":"","hangdang":"小生","price":200,"images":"","liupai":"","rongyu":"","zhengshu":"","yuanxiao":"","jianjie":"","shicong":"","jumu":""},"pinglun":[{"pinglunname":"秦川","content":"老师态度不好",
        "dottime":1503583024},{"pinglunname":"于魁智","content":"老师态度不好","dottime":1503583024}]}｝</td>
    </tr>
    <tr>
        <td width="5%">yuyue</td><td width="8%">提交预约信息</td><td width="10%">参数：学生的名字stuname,学生的手机号stuphone,老师的idtechid</td><td width="40%">json格式，code,status,data｛提示信息｝</td>
    </tr>
    <tr>
        <td width="5%">register</td><td width="8%">注册</td><td width="10%">username帐号，password密码，xingming姓名，xingbie性别，nianling年龄，
         dianhua电话，weizhi所在城市区县，headimage头像，
        juzhong剧种，hangdang行当,flag:teacher表示老师，student表示学生，
        type:teacher表示老师，student表示学生</td><td width="40%">json格式，code,status,data｛提示信息｝</td>
    </tr>
    <tr>
        <td width="5%">login</td><td width="8%">登录</td><td width="10%">用户名或则手机号：username;密码:password，flag:teacher表示老师，student表示学生</td><td width="40%">json格式，code,status,data｛如果登录失败会有提示信息；如果登录成功，会将这个人的信息返回"id": 1066,
        "id":1066,"username":"hello1","password":"96e79218965eb72c92a549dd5a330112","headimage":"upload\/20171025\\acdb652a88341928210e93855d41d33c.jpg","address":"","hangdang":"s","rongyu":"","zhengshu":"","xingming":"sdfs","nianling":0,"xingbie":"ss","yuantuan":"","xueli":"","juzhong":"s","danwei":"","leixing":"","jumu":"","yuanxiao":"","shicong":"","jianjie":"","weizhi":"s","liupai":"","zhaopian":0,"dianhua":"s","logintime":1508931022,"deltime":"","isrenzheng":0,"images":"","dottime":"1508922573","renzhengtime":"","price":0,"uid":0,"extend":0
        ｝</td>
    </tr>
    <tr>
        <td width="5%">yuyue</td><td width="8%">提交预约信息</td><td width="10%">参数：学生的名字stuname,学生的手机号stuphone,老师的idtechid</td><td width="40%">json格式，code,status,data｛｝</td>
    </tr>
    <tr>
        <td width="5%">renzheng</td><td width="8%">老师认证</td><td width="10%">juzhong剧种，hangdang行当、danwei所在单位、images照片（2张以上）、   认证选填：liupai流派、rongyu所获荣誉、zhengshu资格证书、yuanxiao毕业院校、jianjie简介，shicong师从
        * id:老师对应的id</td><td width="40%">json格式，code,status,data｛提示信息｝</td>
    </tr>
    <tr>
        <td width="5%">changeinfo</td><td width="8%">修改信息</td><td width="10%">liupai流派、rongyu所获荣誉、zhengshu资格证书、yuanxiao毕业院校、jianjie简介，shicong师从，id老师id</td><td width="40%">json格式，code,status,data｛提示信息｝</td>
    </tr>
    <tr>
        <td width="5%">logout</td><td width="8%">推出接口</td><td width="10%">无</td><td width="40%">json格式，code,status,data｛提示信息｝</td>
    </tr>
</table>
<div>
    code:1000表示查询有数据或则提交修改，删除成功，
    * 1001表示查询没有数据，提交失败，修改失败，
    * 1004表示参数不全，
    * 1002表示没有登录
    * 1003表示登录过期
    * 1005表示数据已经存在
    * 1006表示已经认证过
    * 1007表示已经登录
    *status:1表示调接口成功，0表示调用接口失败
</div>
</body>
</html>